package org.edu.modules.logistics.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.api.R;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import java.sql.Timestamp;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * entity-医疗记录表
 */
@TableName("ve_houqin_yiliao")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="医疗记录表对象", description="ve_houqin_yiliao")
public class VeHqYiliao extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "患者姓名")
    @Length(max = 20)
    private String patient;

    @TableField
    @ApiModelProperty(value = "医疗时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date ylTime;

    @TableField
    @ApiModelProperty(value = "医疗原因")
    @Length(max = 200)
    private String ylyy;

    @TableField
    @ApiModelProperty(value = "医疗人员")
    @Length(max = 36)
    private String hqUserId;

    @TableField
    @ApiModelProperty(value = "是否校外治疗：1=是，0=否")
    private Integer sfxw;

    @TableField
    @ApiModelProperty(value = "医疗地址")
    @Length(max = 100)
    private String address;

    @TableField
    @ApiModelProperty(value = "备注")
    @Length(max = 500)
    private String remark;
}
